<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>三球</title>
    <script>
        for(var red=0;red<=25;++red){
            for(var white=0;white<=31;++white){
                for(var black=0;black<=28;++black){
                    if(((red+white==25)&&white+black==31)&&red+black==28){
                        document.write('红球:'+red,'白球'+white,'黑球'+black);
                    }
                }
            }
        }
    </script>
</head>
<body>

</body>
</html>